package org.techism.client;

import com.google.gwt.user.client.ui.HTML;

public class PanelView {

    /**
     * The message displayed to the user when the server cannot be reached or
     * returns an error.
     */
    private static final String SERVER_ERROR = "An error occurred while "
            + "attempting to contact the server. Please check your network " + "connection and try again.";

    public void showError() {
        // Show the RPC error message to the user
        // dialogBox.setText("Remote Procedure Call - Failure");
        final HTML serverResponseLabel = new HTML();
        serverResponseLabel.addStyleName("serverResponseLabelError");
        serverResponseLabel.setHTML(SERVER_ERROR);
    }
}
